package ace.cmp.spring.graphql.playground.autoconfig;

import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author caspar
 * @date 2023/2/14 11:46
 */
@Configuration
@ImportAutoConfiguration(
    classes = {
      graphql.kickstart.playground.boot.PlaygroundAutoConfiguration.class,
    })
public class PlaygroundAutoConfig implements WebMvcConfigurer {
  @Override
  public void addResourceHandlers(ResourceHandlerRegistry registry) {
    //
    // registry.addResourceHandler("/vendor/**").addResourceLocations("classpath*:/static/vendor/");
  }
}
